/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.conasinf.sofia.model.dao;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author jfgomez
 * @param <T>
 * @param <ID>
 */
public interface GenericDAO<T, ID extends Serializable> {

    T create();

    void save(T entity);

    void update(T entity);

    T get(ID id);

    void delete(ID id);

    T findOne();

    List<T> findAll(String sql);
}
